package main

import (
	"fmt"
	"github.com2/donnie4w/go-logger/logger"
	"time"
)

func main() {
	defer func() {
		if e := recover(); e != nil {
			fmt.Println("program exception:", e)
		}
	}()

	logger.SetRollingFile("./log", "server.log", 10, 5, logger.KB)
	logger.SetLevel(logger.INFO)

	for {
		logger.Info(time.Now())
	}
}
